import { IFeidaoAiBrowserComponent } from '@dfeidao/atom-web/interfaces';

export default async function a005(fd: IFeidaoAiBrowserComponent) {
	// todo
	const n = fd.data.node.querySelector<HTMLImageElement>('[data-id="pic"]');
	let old = Number(n.getAttribute('flag'));
	old--;
	if (old <= 0) {
		alert("这是第一张图片");
	} else {
		n.setAttribute('flag', old + '');
		// const now = Number(n.getAttribute('flag'));
		// console.log(now + "当前flag");
	}

}
